import Vue from 'vue'
//导包路由
import VueRouter from 'vue-router'
Vue.use(VueRouter)
//导入路由组件
import login from '@/views/login.vue'
import layout from '@/views/layout.vue'
//注册路由路径
var routes = [
    {path:'/',redirect:'/login'},
    {path:'/login',component:login},
    {path:'/layout',component:layout}
]
var router = new VueRouter({
    routes
})
export default router

